package cn.fzkj.gulimall.auth.feign;

import cn.fzkj.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @DESCRIPTION 短信远程接口
 * @Author yaya
 * @DATE 2022/8/20
 */
@FeignClient(value = "gulimall-third-party")
public interface SmsFeignService {

    /**
     * 发送短信验证码
     * @param phone
     * @param code
     * @return
     */
    @RequestMapping(value = "/sms/sendCode", method = RequestMethod.GET)
    R sendSms(@RequestParam("phone") String phone, @RequestParam("code") String code);

}
